<!DOCTYPE html>
<html ng-app="renextop">
<head>
  <title>搞机狂欢夜 单身不孤单</title>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
  <link href="/static/night/css/ionic.min.css" rel="stylesheet">
  <link rel="stylesheet" href="/static/css/font-awesome.min.css">
</head>
<body ng-controller="AppCtrl">
	<ion-view  style="background:#ea0000;">
		<ion-content>
			<div style="position:relative;">
				<img src="/static/img/main_top@2x.png" style="width:100%;height:auto;"/>
				<img src="/static/img/new_main_gift@2x.png" style="width:100%;height:auto;">
				<div style="position:absolute;bottom:0;width:100%;left:33%;height:auto;">
						<img src="/static/img/dog.gif" style="width:100px;">
				</div>
			</div>
			<div  style="text-align:center;color:white;padding:0 15%;">
				<div style="overflow:hidden;"><img src="/static/img/main_price_up.png" /></div>
				<div><span style="color:#FBD948;font-size:2em;font-weight:bolder;">目标砍价:<b>7,896</b></span></div>
				<div><span style="text-decoration:line-through;font-weight:500;">原价:15,792</span></div>
				<div style="overflow:hidden;"><img src="/static/img/main_price_down.png" /></div>
				<div>
					T1-A｜地形跟随雷达模块｜液位传感器｜数传模块｜蓝牙模块｜4套植保动力套装 K5000
				</div>
				<div>
					<a ng-click="openRuleModal()" style="color:#fbd948;">查看活动规则</a>
				</div>
			</div>
			<div ng-if="activity_id" style="position:relative;padding:0 10%;height:40px;margin-top:16px;">
				<div style="position:absolute;width:80%;height:40px;">
					<img src="/static/img/Rectangle.png" style="width:100%;height:40px;" />
				</div>
				<div style="color:yellow;height:40px;line-height:40px;padding:0 8px;font-size:180%;text-align:center;font-weight:500;">
					TA的价格是<span ng-bind="currentActivitor.now_price"></span>元
				</div>
			</div>
			<div ng-if="activity_id && currentActivitor.now_price != currentActivitor.dest_price" class="row" style="margin-top:16px;height:40px;padding:0;">
				<div ng-click="cutPrice()" class="col" style="height:40px;background-image:url(/static/img/button_red.png);background-size:contain;background-repeat:no-repeat;background-position:center;text-align:center;font-weight:500;color:white;line-height:40px;padding:0;">
					为TA砍价帮帮TA
				</div>
				<div ng-click="addPrice()" class="col" style="height:40px;background-image:url(/static/img/button_yellow.png);background-size:contain;background-repeat:no-repeat;background-position:center;text-align:center;font-weight:500;color:white;line-height:40px;padding:0;">
					为TA加价搞搞TA
				</div>
			</div>
			<div ng-if="currentActivitor.user_id._id == user_id && prize">
				<img src="{{prize.img}}" style="width:100%;height:auto;" />
			</div>
			<div ng-if="currentActivitor.user_id._id != user_id" class="row" style="margin-top:16px;height:40px;padding:0;">
				<div  class="col" style="height:40px;background-image:url(/static/img/Rectangle_white.png);background-size:contain;background-repeat:no-repeat;background-position:center;text-align:center;font-weight:500;color:white;line-height:40px;padding:0;">
					我的现价是<span ng-bind="currentUserActivity.now_price || 15792"></span>元
				</div>
				<div ng-click="helpme()" class="col" style="height:40px;background-image:url(/static/img/Rectangle_white.png);background-size:contain;background-repeat:no-repeat;background-position:center;text-align:center;font-weight:500;color:white;line-height:40px;padding:0;">
					发起砍价
				</div>
			</div>
			<div ng-if="activity_id" style="margin:16px 5% 0 5%;border-top-left-radius:16px;border-top-right-radius:16px;width:90%;background:black;height:auto;">
				<div style="color:white;text-align:center;padding:8px 0;">
					已有<span ng-bind="helpers.length?helpers.length:0"></span>位好友帮忙
				</div>
				<div style="background-color:#1D1F20;width:100%:height:auto;">
					<div ng-repeat="helper in helpers" style="height:60px;padding:10px 16px;width:100%;border-bottom:solid 1px #2f2f2f;">
						<div style="float:left;height:40px;line-height:40px;">
							<img ng-src="{{helper.user_id.headimgurl}}" style="width:40px;height:40px;border-radius:100%;" />
						</div>
						<div style="height:40px;float:left;margin-left:16px;">
							<div style="color:white;font-weight:500;"><span ng-if="helper.help_method==1" style="color:red;" ng-bind="'－ ¥ '+helper.cut"></span><span ng-if="helper.help_method==2" style="color:green;" ng-bind="'＋ ¥ '+helper.cut"></span></div>
							<div style="color:#C5C5C5;font-size:80%;" ng-bind="helper.info"></div>
						</div>		
						<div style="height:40px;float:right;opacity:0.5;">
							<div style="color:#C5C5C5" ng-bind="getDate(helper.create_date)"></div>
							<div style="color:#C5C5C5" ng-bind="helper.user_id.nickname.length>4?helper.user_id.nickname.substr(0,4)+'...':helper.user_id.nickname"></div>
						</div>				
						<div style="clear:both;width:0px;height:0;font-size:0;"></div>
					</div>
				</div>
			</div>
			
			<div ng-if="activity_id" style="border-bottom-left-radius:16px;border-bottom-right-radius:16px;width:90%;margin:0 5%;background:black;height:40px;">
			</div>
			<div style="text-align:center;">
				<img src="/static/img/logo_tianmao.png">
			</div>
		</ion-content>
		<!-- <ion-content>
			<h5 style="color:#fff;">本次活动圆满结束，请中奖的嘉宾及时兑奖，以免资格过期</h5>
		</ion-content> -->
	</ion-view>
</body>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js

"></script>
<script src="/static/night/js/ionic.bundle.min.js"></script>
<script src="/static/bower_components/lodash/dist/lodash.min.js"></script>
<script src="/static/bower_components/moment/min/moment.min.js"></script>
<script src="/static/js/app.js"></script>
<script src="/static/js/controllers.js"></script>
<script src="/static/js/services.js"></script>
</html>